<div class="container nav-margin-top">
        <ol class="breadcrumb">
            <li class="active">来自 <?php echo $isExist['user']?> 的私信: <?php echo $isExist['title']?></li>
        </ol>
        <ul class="list-group">
            <li class="list-group-item list-header">
                <label>From:</label>
            <?php if($isExist['photo']){ ?>
                <a class="pic-a" href="userinfo.php?uid=<?php echo $isExist['uid']?>"><img class="img-yuan-x36" src="<?php echo PHOTO_PATH.$isExist['photo']?>"></a>
            <?php } ?>
                <span><?php echo $isExist['user']?></span>
             <?php if($isExist['uid'] != 0){ ?>
                <a href="selfmail.php?to=<?php echo $isExist['uid']?>" class="btn">回信给ta</a>
            <?php } ?>
            </li>
            <li class="list-group-item">
                   <div class="title">
                    <?php echo $isExist['title']?>
                   </div>
            </li>
            <li class="list-group-item main">
                <div id="meng">
                    <div id="showimg">
                        <img src="" class="pic-scale">
                    </div>
                </div>
                <div class="body">
                  <?php echo $isExist['body']?>
                </div>
        <?php if($files){ ?>
                <div class="attachment">
                    <b></b>
                    <ul>
        <?php  
            $img_ext = ['jpg','jpeg','gif','png'];
            foreach($files as $file_item){ 
            $ext = pathinfo($file_item)['extension'];
            if(in_array($ext,$img_ext)){
        ?>
                    <li class="attachment-img">
                        <img src="<?php echo FILE_PATH.$file_item?>">
                    </li>
        <?php }else{ ?>
                    <li>
                        <a href="download.php?file=<?php echo $file_item?>"><?php echo $file_item?></a>
                    </li>
        <?php } 
            } ?>
                    </ul>
                </div>
        <?php } ?>
            </li>
          
        </ul>
</div>

<script src="public/js/jquery.min.js"></script>
<script src="public/js/my-bootstrap.min.js"></script>
<script async src="public/js/mailcont.all.js"></script>